package yi;

import java.io.*;
import java.util.ArrayList;
import java.util.List;

public class NumberFive {
    public static void main(String[] args) {
        List<String> list=new ArrayList<>();
        try(
                BufferedReader bufferedReader=new BufferedReader(new FileReader("g:/file/Task1.txt"));
        ) {
            String s = null;
            while ((s=bufferedReader.readLine())!=null){
                list.add(s);
            }
        }catch (IOException e){
            e.printStackTrace();
        }

        list.forEach(System.out::println);
    }
}
